package com.example.accessibilitydemo;

import android.annotation.TargetApi;
import android.service.notification.NotificationListenerService;
import android.service.notification.StatusBarNotification;

@TargetApi(18)
public class NotificationServiceV18 extends NotificationListenerService {
    public NotificationServiceV18() {
    }

    // 在收到消息时触发
    @Override
    public void onNotificationPosted(StatusBarNotification sbn) {
        NotificationCall.get().updateStatusBarNotification(sbn);
    }

    // 在删除消息时触发
    @Override
    public void onNotificationRemoved(StatusBarNotification sbn) {
        // TODO Auto-generated method stub
    }

    public void onListenerConnected() {
    }
}
